<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich">
      <body style="overflow-y:hidden">
          <h:form>
              <a4j:include viewId="toolBar.xhtml"/>
              
              <rich:spacer height="5px"/>
              <div style="overflow-y:auto;height:85%;width:100%">
              <rich:dataTable id="permTable" rows="40" width="100%"  value="#{permSession.allPerms}" var="perm" >
                  <rich:column style="text-align:center" sortBy="#{perm.permValue}">  
                      <f:facet name="header">
                         #{messages['fina2.security.permission']}
                      </f:facet>
                      <h:outputText value="#{perm.permValue}" />
                  </rich:column>
                  <rich:column sortable="false">
                      <f:facet name="header">
                          
                      </f:facet>
                      <h:selectBooleanCheckbox value="#{perm.checked}" />
                  </rich:column>
              </rich:dataTable>
              
              </div>
              <br/>
              <div align="center">
                  <a4j:commandButton value="Submit" style="width:80px" />
              </div>   
               
          </h:form>
      </body>
      
</html>